package com.lemeshko.xml;

import java.util.Date;
import java.util.List;

public class Book {

	private final int id;
	private final int isbn;
	private final String name;
	private final String description;
	private final Date publishDate;
	private final List<String> authors;

	public Book(int id, int isbn, String name, String description,
			Date publishDate, List<String> authors) {
		super();
		this.id = id;
		this.isbn = isbn;
		this.name = name;
		this.description = description;
		this.publishDate = publishDate;
		this.authors = authors;
	}

	public int getId() {
		return id;
	}

	public int getIsbn() {
		return isbn;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public List<String> getAuthors() {
		return authors;
	}

	@Override
	public String toString() {
		return "{id:" + id + ", name:" + name + ", desc:" + description
				+ " publish date:" + publishDate + ", authors:" + authors + "}";
	}
}
